{% extends 'home/template.html' %}

{% load i18n %}
{% load bleach_tags %}

{% block title %} {% translate "Upload Findings" %} {% endblock title %}

{% block stylesheets %}
  {{ block.super }}
{% endblock stylesheets %}

{% block content %}

  <section class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-4">
          <h1>{% translate "Upload Findings" %}</h1>
        </div>
        <div class="col-sm-8">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="/">{% translate "Home" %}</a></li>
            <li class="breadcrumb-item"><a href="{% url 'customer_view' DB_report_query.product.customer.pk %}">{{ DB_report_query.product.customer.name | bleach}}</a></li>
            <li class="breadcrumb-item"><a href="{% url 'product_view' DB_report_query.product.pk %}">{{ DB_report_query.product.name | bleach}}</a></li>
            <li class="breadcrumb-item"><a href="{% url 'report_view' DB_report_query.pk %}">{{ DB_report_query.title}}</a></li>
            <li class="breadcrumb-item active">{% translate "Upload Findings" %}</a></li>
          </ol>
        </div>
      </div>
    </div>
  </section>


  <section class="content">


    <div class="container-fluid">
      <div class="card card-outline card-danger">
        <div class="card-header">
          <h3 class="card-title">{% translate "Findings CSV Document" %}</h3>

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
          </div>
        </div>
        <div class="card-body">



         <div class="row">
              <div class="col-md-12">

                  <div class="row">
                      <div class="col-12 col-sm-12">

                        <div class="language-scss highlighter-rouge">

                        <div class="highlight">
                          <pre class="highlight">
// {% translate "Comma-separated values (CSV) file format" %}
                        
"ID", "Status", "Title", "Severity", "CVSS Vector", "CVSS Score", "CWE", "CWE ID", "OWASP", "OWASP ID", "Description", "POC", "Location", "Impact", "Recommendation", "References", "Appendix", "Appendix Description"

"2834q345-b24e-4ghf-r86d-ftue38af5480","Open","Finding 1","Low","3.7 (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N)","3.7","73","Description","127.0.0.1","Impact","Recommendation","References","Appendix","Appendix Description"
</pre></div>



                      </div>
                  </div>

          </div>
       </div> 



          <div class="row">
            <div class="col-md-12">

                  <form method="post" enctype="multipart/form-data">
                      {% csrf_token %}
                    <div class="input-group">
                      <div class="custom-file">
                        <input type="file" name="file" class="form-control" id="file" required />
                      </div>
                      <div class="input-group-append">
                        <button type="submit" class="btn btn-success"><i class="fa fa-save"></i> {% translate "Upload" %}</button>
                      </div>
                    </div>

                  </form>

            </div>
        </div>


        </div>
      </div>
    </div>
  </section>
 


{% endblock content %}

{% block javascripts %}
  {{ block.super }}
{% endblock javascripts %}